package com.du.User.mapper;

import com.du.User.pojo.User;
import com.du.User.vo.UserQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

public interface UserMapper {
//    @Select("select * from yszd.stu where username=#{username} and password=#{password}")
    public User getUser(User user);
//    @Select("select * from yszd.stu")
    public List<User> findAll();
    

    List<User> getUserList(UserQuery param);

    Long countUserList(UserQuery param);

    void addUser(User user);

    void deleteUserByIds(String ids);

    User getUserById(Integer sid);

    void updateUser(User user);
}
